package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author C-Q
 * @version 1.1.0
 * @Description: TODO
 * @date 2022/12/8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tbl_stock")
public class Stock {
    @TableId(type= IdType.AUTO)
    private int productid;
    @TableField("num")
    private int stock;
}
